<div class="tenants view">
	<h2><?php  echo __('Tenant');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['id']); ?>&nbsp;</dd>
		<dt><?php echo __('Deleted'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['deleted']); ?>&nbsp;</dd>
		<dt><?php echo __('Active'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['active']); ?>&nbsp;</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['name']); ?>&nbsp;</dd>
		<dt><?php echo __('Domain'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['domain']); ?>&nbsp;</dd>
		<dt><?php echo __('Memo'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['memo']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Created'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['gmt_created']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Deleted'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['gmt_deleted']); ?>&nbsp;</dd>
		<dt><?php echo __('Gmt Modified'); ?></dt>
		<dd><?php echo h($tenant['Tenant']['gmt_modified']); ?>&nbsp;</dd>
	</dl>
</div>

<?php echo $this->element('menu'); ?>

<div class="related">
	<h3><?php echo __('Related Attachments');?></h3>

	<?php if (!empty($tenant['Attachment'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="attachments datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Featured'); ?></th>
				<th><?php echo __('Foreign Key'); ?></th>
				<th><?php echo __('Model'); ?></th>
				<th><?php echo __('Dirname'); ?></th>
				<th><?php echo __('Basename'); ?></th>
				<th><?php echo __('Filesize'); ?></th>
				<th><?php echo __('Checksum'); ?></th>
				<th><?php echo __('Alternative'); ?></th>
				<th><?php echo __('Group'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Attachment'] as $attachment): ?>
			<tr>
				<td><?php echo $attachment['id'];?></td>
				<td><?php echo $attachment['tenant_id'];?></td>
				<td><?php echo $attachment['deleted'];?></td>
				<td><?php echo $attachment['featured'];?></td>
				<td><?php echo $attachment['foreign_key'];?></td>
				<td><?php echo $attachment['model'];?></td>
				<td><?php echo $attachment['dirname'];?></td>
				<td><?php echo $attachment['basename'];?></td>
				<td><?php echo $attachment['filesize'];?></td>
				<td><?php echo $attachment['checksum'];?></td>
				<td><?php echo $attachment['alternative'];?></td>
				<td><?php echo $attachment['group'];?></td>
				<td><?php echo $attachment['gmt_created'];?></td>
				<td><?php echo $attachment['gmt_deleted'];?></td>
				<td><?php echo $attachment['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'attachments', 'action' => 'view', $attachment['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'attachments', 'action' => 'edit', $attachment['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'attachments', 'action' => 'delete', $attachment['id']), null, __('Are you sure you want to delete # %s?', $attachment['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Attachment'), array('controller' => 'attachments', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Categories');?></h3>

	<?php if (!empty($tenant['Category'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="categories datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Parent Id'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Category'] as $category): ?>
			<tr>
				<td><?php echo $category['id'];?></td>
				<td><?php echo $category['tenant_id'];?></td>
				<td><?php echo $category['deleted'];?></td>
				<td><?php echo $category['parent_id'];?></td>
				<td><?php echo $category['name'];?></td>
				<td><?php echo $category['gmt_created'];?></td>
				<td><?php echo $category['gmt_deleted'];?></td>
				<td><?php echo $category['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'categories', 'action' => 'view', $category['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'categories', 'action' => 'edit', $category['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'categories', 'action' => 'delete', $category['id']), null, __('Are you sure you want to delete # %s?', $category['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Category'), array('controller' => 'categories', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Comments');?></h3>

	<?php if (!empty($tenant['Comment'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="comments datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Author Id'); ?></th>
				<th><?php echo __('Post Id'); ?></th>
				<th><?php echo __('Approved'); ?></th>
				<th><?php echo __('Content'); ?></th>
				<th><?php echo __('Gmt Approved'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Comment'] as $comment): ?>
			<tr>
				<td><?php echo $comment['id'];?></td>
				<td><?php echo $comment['tenant_id'];?></td>
				<td><?php echo $comment['deleted'];?></td>
				<td><?php echo $comment['author_id'];?></td>
				<td><?php echo $comment['post_id'];?></td>
				<td><?php echo $comment['approved'];?></td>
				<td><?php echo $comment['content'];?></td>
				<td><?php echo $comment['gmt_approved'];?></td>
				<td><?php echo $comment['gmt_created'];?></td>
				<td><?php echo $comment['gmt_deleted'];?></td>
				<td><?php echo $comment['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, __('Are you sure you want to delete # %s?', $comment['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Comment'), array('controller' => 'comments', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Configs');?></h3>

	<?php if (!empty($tenant['Config'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="configs datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Category'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Value'); ?></th>
				<th><?php echo __('Description'); ?></th>
				<th><?php echo __('Type'); ?></th>
				<th><?php echo __('Options'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Config'] as $config): ?>
			<tr>
				<td><?php echo $config['id'];?></td>
				<td><?php echo $config['tenant_id'];?></td>
				<td><?php echo $config['category'];?></td>
				<td><?php echo $config['name'];?></td>
				<td><?php echo $config['value'];?></td>
				<td><?php echo $config['description'];?></td>
				<td><?php echo $config['type'];?></td>
				<td><?php echo $config['options'];?></td>
				<td><?php echo $config['gmt_created'];?></td>
				<td><?php echo $config['gmt_deleted'];?></td>
				<td><?php echo $config['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'configs', 'action' => 'view', $config['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'configs', 'action' => 'edit', $config['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'configs', 'action' => 'delete', $config['id']), null, __('Are you sure you want to delete # %s?', $config['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Config'), array('controller' => 'configs', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Downloads');?></h3>

	<?php if (!empty($tenant['Download'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="downloads datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Download Count'); ?></th>
				<th><?php echo __('Published'); ?></th>
				<th><?php echo __('Title'); ?></th>
				<th><?php echo __('Gmt Published'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Download'] as $download): ?>
			<tr>
				<td><?php echo $download['id'];?></td>
				<td><?php echo $download['tenant_id'];?></td>
				<td><?php echo $download['deleted'];?></td>
				<td><?php echo $download['download_count'];?></td>
				<td><?php echo $download['published'];?></td>
				<td><?php echo $download['title'];?></td>
				<td><?php echo $download['gmt_published'];?></td>
				<td><?php echo $download['gmt_created'];?></td>
				<td><?php echo $download['gmt_deleted'];?></td>
				<td><?php echo $download['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'downloads', 'action' => 'view', $download['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'downloads', 'action' => 'edit', $download['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'downloads', 'action' => 'delete', $download['id']), null, __('Are you sure you want to delete # %s?', $download['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Download'), array('controller' => 'downloads', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Groups');?></h3>

	<?php if (!empty($tenant['Group'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="groups datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Parent Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Group'] as $group): ?>
			<tr>
				<td><?php echo $group['id'];?></td>
				<td><?php echo $group['tenant_id'];?></td>
				<td><?php echo $group['parent_id'];?></td>
				<td><?php echo $group['deleted'];?></td>
				<td><?php echo $group['name'];?></td>
				<td><?php echo $group['gmt_deleted'];?></td>
				<td><?php echo $group['gmt_created'];?></td>
				<td><?php echo $group['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'groups', 'action' => 'view', $group['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'groups', 'action' => 'edit', $group['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'groups', 'action' => 'delete', $group['id']), null, __('Are you sure you want to delete # %s?', $group['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Group'), array('controller' => 'groups', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Links');?></h3>

	<?php if (!empty($tenant['Link'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="links datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Active'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Url'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Link'] as $link): ?>
			<tr>
				<td><?php echo $link['id'];?></td>
				<td><?php echo $link['tenant_id'];?></td>
				<td><?php echo $link['deleted'];?></td>
				<td><?php echo $link['active'];?></td>
				<td><?php echo $link['name'];?></td>
				<td><?php echo $link['url'];?></td>
				<td><?php echo $link['gmt_created'];?></td>
				<td><?php echo $link['gmt_deleted'];?></td>
				<td><?php echo $link['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'links', 'action' => 'view', $link['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'links', 'action' => 'edit', $link['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'links', 'action' => 'delete', $link['id']), null, __('Are you sure you want to delete # %s?', $link['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Link'), array('controller' => 'links', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Logs');?></h3>

	<?php if (!empty($tenant['Log'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="logs datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('User Id'); ?></th>
				<th><?php echo __('Foreign Key'); ?></th>
				<th><?php echo __('Module'); ?></th>
				<th><?php echo __('Type'); ?></th>
				<th><?php echo __('Username'); ?></th>
				<th><?php echo __('Content'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Log'] as $log): ?>
			<tr>
				<td><?php echo $log['id'];?></td>
				<td><?php echo $log['tenant_id'];?></td>
				<td><?php echo $log['user_id'];?></td>
				<td><?php echo $log['foreign_key'];?></td>
				<td><?php echo $log['module'];?></td>
				<td><?php echo $log['type'];?></td>
				<td><?php echo $log['username'];?></td>
				<td><?php echo $log['content'];?></td>
				<td><?php echo $log['gmt_created'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'logs', 'action' => 'view', $log['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'logs', 'action' => 'edit', $log['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'logs', 'action' => 'delete', $log['id']), null, __('Are you sure you want to delete # %s?', $log['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Log'), array('controller' => 'logs', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Posts');?></h3>

	<?php if (!empty($tenant['Post'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="posts datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Author Id'); ?></th>
				<th><?php echo __('Category Id'); ?></th>
				<th><?php echo __('Published'); ?></th>
				<th><?php echo __('Click Count'); ?></th>
				<th><?php echo __('Comment Count'); ?></th>
				<th><?php echo __('Title'); ?></th>
				<th><?php echo __('Content'); ?></th>
				<th><?php echo __('Images'); ?></th>
				<th><?php echo __('Publish Date'); ?></th>
				<th><?php echo __('Cover'); ?></th>
				<th><?php echo __('Gmt Published'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Post'] as $post): ?>
			<tr>
				<td><?php echo $post['id'];?></td>
				<td><?php echo $post['tenant_id'];?></td>
				<td><?php echo $post['deleted'];?></td>
				<td><?php echo $post['author_id'];?></td>
				<td><?php echo $post['category_id'];?></td>
				<td><?php echo $post['published'];?></td>
				<td><?php echo $post['click_count'];?></td>
				<td><?php echo $post['comment_count'];?></td>
				<td><?php echo $post['title'];?></td>
				<td><?php echo $post['content'];?></td>
				<td><?php echo $post['images'];?></td>
				<td><?php echo $post['publish_date'];?></td>
				<td><?php echo $post['cover'];?></td>
				<td><?php echo $post['gmt_published'];?></td>
				<td><?php echo $post['gmt_created'];?></td>
				<td><?php echo $post['gmt_deleted'];?></td>
				<td><?php echo $post['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'posts', 'action' => 'view', $post['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'posts', 'action' => 'edit', $post['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'posts', 'action' => 'delete', $post['id']), null, __('Are you sure you want to delete # %s?', $post['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Post'), array('controller' => 'posts', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Users');?></h3>

	<?php if (!empty($tenant['User'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="users datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('Group Id'); ?></th>
				<th><?php echo __('Active'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Password'); ?></th>
				<th><?php echo __('Mobile'); ?></th>
				<th><?php echo __('Email'); ?></th>
				<th><?php echo __('Ip Last Login'); ?></th>
				<th><?php echo __('Ip Registered'); ?></th>
				<th><?php echo __('Gmt Last Login'); ?></th>
				<th><?php echo __('Gmt Registered'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['User'] as $user): ?>
			<tr>
				<td><?php echo $user['id'];?></td>
				<td><?php echo $user['tenant_id'];?></td>
				<td><?php echo $user['deleted'];?></td>
				<td><?php echo $user['group_id'];?></td>
				<td><?php echo $user['active'];?></td>
				<td><?php echo $user['name'];?></td>
				<td><?php echo $user['password'];?></td>
				<td><?php echo $user['mobile'];?></td>
				<td><?php echo $user['email'];?></td>
				<td><?php echo $user['ip_last_login'];?></td>
				<td><?php echo $user['ip_registered'];?></td>
				<td><?php echo $user['gmt_last_login'];?></td>
				<td><?php echo $user['gmt_registered'];?></td>
				<td><?php echo $user['gmt_created'];?></td>
				<td><?php echo $user['gmt_deleted'];?></td>
				<td><?php echo $user['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'users', 'action' => 'delete', $user['id']), null, __('Are you sure you want to delete # %s?', $user['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>

<div class="related">
	<h3><?php echo __('Related Widgets');?></h3>

	<?php if (!empty($tenant['Widget'])):?>

	<table cellpadding = "0" cellspacing = "0"  class="widgets datatable">
		<thead>
			<tr>
				<th><?php echo __('Id'); ?></th>
				<th><?php echo __('Tenant Id'); ?></th>
				<th><?php echo __('Category Id'); ?></th>
				<th><?php echo __('Deleted'); ?></th>
				<th><?php echo __('System'); ?></th>
				<th><?php echo __('Name'); ?></th>
				<th><?php echo __('Visible'); ?></th>
				<th><?php echo __('Row'); ?></th>
				<th><?php echo __('Column'); ?></th>
				<th><?php echo __('Size'); ?></th>
				<th><?php echo __('Gmt Created'); ?></th>
				<th><?php echo __('Gmt Deleted'); ?></th>
				<th><?php echo __('Gmt Modified'); ?></th>
				<th class="actions"><?php echo __('Actions');?></th>
			</tr>
		</thead>
		<tbody>
		<?php $i = 0; foreach ($tenant['Widget'] as $widget): ?>
			<tr>
				<td><?php echo $widget['id'];?></td>
				<td><?php echo $widget['tenant_id'];?></td>
				<td><?php echo $widget['category_id'];?></td>
				<td><?php echo $widget['deleted'];?></td>
				<td><?php echo $widget['system'];?></td>
				<td><?php echo $widget['name'];?></td>
				<td><?php echo $widget['visible'];?></td>
				<td><?php echo $widget['row'];?></td>
				<td><?php echo $widget['column'];?></td>
				<td><?php echo $widget['size'];?></td>
				<td><?php echo $widget['gmt_created'];?></td>
				<td><?php echo $widget['gmt_deleted'];?></td>
				<td><?php echo $widget['gmt_modified'];?></td>
				<td class="actions">
					<?php echo $this->Html->link(__('View'), array('controller' => 'widgets', 'action' => 'view', $widget['id'])); ?>
					<?php echo $this->Html->link(__('Edit'), array('controller' => 'widgets', 'action' => 'edit', $widget['id'])); ?>
					<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'widgets', 'action' => 'delete', $widget['id']), null, __('Are you sure you want to delete # %s?', $widget['id'])); ?>
				</td>
			</tr>
		<?php endforeach; ?>
		</tbody>
	</table>

	<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Widget'), array('controller' => 'widgets', 'action' => 'add'));?> </li>
		</ul>
	</div>

</div>
